package com.cloudxingkong.dianyinke.Student.Utils;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.HashMap;

/**
 * Created by ningfei on 2016/5/4.
 */
public class LoadJsonUtils {
    public static HashMap<String ,Object>getJsonFromLoad(String json){
        HashMap<String,Object>data =null;
        try {
            data = new HashMap<>();
            JSONObject object = new JSONObject(json);
            data.put("success",object.get("success"));
            return data;
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return null;
    }
}
